/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mireille.learning.compito2;

import java.util.InputMismatchException;
import java.util.Scanner;

/**
 *
 * @author Luca
 */
public class TestCompito2 {
    
    public static void main(String args[]){
        Scanner scanner = new Scanner(System.in);

        try{
        System.out.print("Enter a choice:\n");
        System.out.print("1 ) inserire un conto:\n");
        System.out.print("2 ) cancellare un conto:\n");
        System.out.print("3 ) visualizzare un conto:\n");
        System.out.println("----------------------------");
        int choice = scanner.nextInt();
        System.out.println("ho scelto: "+choice);
        }catch(InputMismatchException ex){
            System.out.println("ERRORE: devi inserire un numero");
        }
    }
    
}
